<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/14
 * Time: 20:48
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait ArticleTrait
{
    use BaseTrait;

    // 分页大小
    protected $limit;

    // 文章ID
    protected $article_id;

    public function __construct(Request $request)
    {
        $this->limit = $request->input('limit', 0);
        $this->article_id = $request->input('article_id', 0);
    }
}